@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&family=Tajawal:wght@400;500;700;800&display=swap');

:root {
    --ebpt1-dark: #0b1329;
    --ebpt1-white: #ffffff;
    --ebpt1-primary: #0284c7;
    --ebpt1-primary-dark: #0f172a;
    --ebpt1-secondary: #f59e0b;
    --ebpt1-accent: #06b6d4;

    --ebpt1-container-width: 1200px;

    --ebpt1-space-xs: .4rem;
    --ebpt1-space-sm: .8rem;
    --ebpt1-space-md: 1.2rem;
    --ebpt1-space-lg: 2rem;
    --ebpt1-space-xl: 3rem;

    --ebpt1-fs-md: 1rem;
    --ebpt1-fs-lg: 1.25rem;
    --ebpt1-fs-xl: 1.6rem;

    --ebpt1-transition: .35s cubic-bezier(.4, 0, .2, 1);
}

body {
    direction: rtl;
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* تنسيق القسم الخارجي */
.ebpt1-why-us-sec {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--ebpt1-space-lg);
    width: 100%;
    padding-block: var(--ebpt1-space-xl);
    background: linear-gradient(180deg, #f8fafc 0%, #f0f9ff 50%, #f8fafc 100%);
    border-top: 1px solid rgba(2, 132, 199, 0.1);
    border-bottom: 1px solid rgba(2, 132, 199, 0.1);
}

/* الحاوية بنظام Flex للمسافات المتناظرة */
.ebpt1-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: var(--ebpt1-container-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--ebpt1-space-md);
}

/* الكارت الأساسي */
.ebpt1-card {
    position: relative;
    border-radius: 18px;
    transition: var(--ebpt1-transition);
    padding: 2px;
    background: #ffffff;
    border: 1px solid rgba(2, 132, 199, 0.15);
    box-shadow: 0 10px 25px rgba(11, 19, 41, 0.04);
}

.ebpt1-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(2, 132, 199, 0.12);
    border-color: rgba(2, 132, 199, 0.35);
}

.ebpt1-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--ebpt1-space-sm);
    padding: 0 15px;
}

/* العنوان الرئيسي وكلمة التمييز */
.ebpt1-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--ebpt1-primary-dark);
}

.ebpt1-title-highlight {
    color: var(--ebpt1-primary);
}

/* الخط السفلي الأنيق للعنوان */
.ebpt1-underline {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--ebpt1-primary), var(--ebpt1-secondary));
    border-radius: 2px;
}

/* الصندوق الداخلي للكارت */
.ebpt1-card-box {
    background: var(--ebpt1-white);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    overflow: hidden;
    height: 100%;
    padding: 28px 24px;
    position: relative;
}

.ebpt1-card-num {
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(2, 132, 199, 0.06);
    transition: 0.4s;
    pointer-events: none;
    z-index: 0;
    line-height: 1;
}

.ebpt1-card:hover .ebpt1-card-num {
    color: rgba(2, 132, 199, 0.12);
}

/* حاوية المحتوى */
.ebpt1-card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
    gap: 12px;
    z-index: 1;
    width: 100%;
}

.ebpt1-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.1) 0%, rgba(6, 182, 212, 0.15) 100%);
    color: var(--ebpt1-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 6px;
}

/* العناوين داخل البطاقة */
.ebpt1-card-title {
    font-size: var(--ebpt1-fs-lg);
    color: var(--ebpt1-primary-dark);
    font-weight: 800;
    transition: var(--ebpt1-transition);
}

/* الفقرات الوصفية */
.ebpt1-card-desc {
    font-size: var(--ebpt1-fs-md);
    color: #475569;
    font-weight: 500;
    line-height: 1.6;
    transition: var(--ebpt1-transition);
}

@media (max-width: 992px) {
    .ebpt1-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .ebpt1-container {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }

    .ebpt1-card-box {
        padding: 22px 18px;
    }
}